INPUT "Vvedite x : ", X
SELECT CASE X
CASE 1 TO 2
PRINT "Formula 1 "
CASE 2 TO 3
PRINT "Formula 2 "
CASE 3 TO 4
PRINT "Formula 3 "
CASE 4 TO 5
PRINT "Formula 4 "
CASE ELSE
END SELECT
Тестирование выполнено в программе QB64 ( Скачать )